import fetch from '@/util/fetch.js'
// 帐号列表
export function getAccountList (data) {
    return fetch({
        url: '/user/list',
        method: 'get',
        params: data
    })
}
// 管理员协助变更手机号
export function postChangeMobile (data) {
    return fetch({
        url: '/user/manager-help-bind-mobile',
        method: 'post',
        data
    })
}
// 账号解锁
export function userUnLock (data) {
    return fetch({
        url: '/user/unlock',
        method: 'post',
        data
    })
}

// 账号锁定
export function userLock (data) {
    return fetch({
        url: '/user/lock',
        method: 'post',
        data
    })
}

// 修改密码
export function postChangePassword (data) {
    return fetch({
        url: '/user/manager-help-reset-password',
        method: 'post',
        data
    })
}
// 修改手机号码
export function getOperationLog (data) {
    return fetch({
        url: '/user/operation-log',
        method: 'get',
        params: data
    })
}

export function getUserList (data) {
    return fetch({
        url: '/user-account/oms-list',
        method: 'get',
        params: data
    })
}
// 提交审核信息
export function postCertPersonal (data) {
    return fetch({
        url: '/user-account-certification-personal/audit',
        method: 'post',
        data
    })
}
// 获取个人认证详情
export function getPersonalCertDetail (data) {
    return fetch({
        url: '/user-account-certification-personal/get-by-id',
        method: 'get',
        params: data
    })
}
// 个人待办列表
export function getCertPersonalNotAudited (data) {
    return fetch({
        url: '/user-account-certification-personal/list-not-audited',
        method: 'get',
        params: data
    })
}
// 获取个人不通过原因
export function getPersonalReasonList (data) {
    return fetch({
        url: '/user-account-certification-personal/reason-list',
        method: 'get',
        params: data
    })
}
// 个人办结列表
export function getCertPersonalHasAudited (data) {
    return fetch({
        url: '/user-account-certification-personal/list-has-audited',
        method: 'get',
        params: data
    })
}

// 提交公司审核信息
export function postCertCompany (data) {
    return fetch({
        url: '/user-account-certification-company/audit',
        method: 'post',
        data
    })
}
// 获取公司认证详情
export function getCompanyCertDetail (data) {
    return fetch({
        url: '/user-account-certification-company/get-by-id',
        method: 'get',
        params: data
    })
}
// 公司待办列表
export function getCertCompanyNotAudited (data) {
    return fetch({
        url: '/user-account-certification-company/list-not-audited',
        method: 'get',
        params: data
    })
}
// 获取公司不通过原因
export function getCompanyReasonList (data) {
    return fetch({
        url: '/user-account-certification-company/reason-list',
        method: 'get',
        params: data
    })
}
// 公司办结列表
export function getCertCompanyHasAudited (data) {
    return fetch({
        url: '/user-account-certification-company/list-has-audited',
        method: 'get',
        params: data
    })
}
// 认证审核记录
export function getUserAcountAuditHistory (data) {
    return fetch({
        url: '/user-account-audit-history/list',
        method: 'get',
        params: data
    })
}

// 获取用户信息
export function getUserAccountBasicInfo (data) {
    return fetch({
        url: '/user-account/basic-info',
        method: 'get',
        params: data
    })
}

// 获取项目专员列表
export function getSpecialistList (data) {
    return fetch({
        url: '/sysuser/specialist-list',
        method: 'get',
        params: data
    })
}
// 信用账户查询
export function getcreditaccount (data) {
    return fetch({
        url: '/capital-credit-account/find-by-user-account-id',
        method: 'get',
        params: data
    })
}
// 查询地区列表
export function getRegionList (data) {
    return fetch({
        url: '/config-region/tree-list',
        method: 'get',
        params: data
    })
}
// 信用账户更新
export function updateCreditFn (data) {
    return fetch({
        url: '/capital-credit-account/update',
        method: 'get',
        params: data
    })
}
// 用户帐户信用记录列表
export function userCreditLog (data) {
    return fetch({
        url: '/user-account-credit/log-list',
        method: 'get',
        params: data
    })
}
export function accountCredit (data) {
    return fetch({
        url: '/user-account-credit/get',
        method: 'get',
        params: data
    })
}
// 用户帐户信用查询
export function changeCreditValue (data) {
    return fetch({
        url: '/user-account-credit/change',
        method: 'post',
        data
    })
}
